﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.Diagnostics;
using Massive;

namespace Tests
{
    public class TestBase
    {
        protected Membership _membership;
        protected DynamicModel _db;
        public void Describes(string description)
        {
            Console.WriteLine("----------------------------");
            Console.WriteLine(description);
            Console.WriteLine("----------------------------");
        }
        public void IsPending()
        {
            Console.WriteLine(" {0} -- PENDING --", GetCaller());
            Assert.Inconclusive();
        }
        //Uses the stack to grab the name of the last test called
        public string GetCaller()
        {
            StackTrace stack = new StackTrace();
            return stack.GetFrame(2).GetMethod().Name;
        }
    }
}
